-- GENERATED SPELL FOR [Aged Dalaran Wizard] --


function spell0_18664(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_18664', 0, 1)
end

function Sorts_18664(pUnit, Event)
local choix_sorts_18664 = math.random(0, 0)
if choix_sorts_18664 == 0 then
pUnit:RegisterEvent('spell0_18664', 1, 1)
end
end

function mob18664_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18664', math.random(1500, 3000), 1)
end

function mob18664_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18664_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18664_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18664, 1, 'mob18664_Action')
RegisterUnitEvent(18664, 2, 'mob18664_Leave')
RegisterUnitEvent(18664, 3, 'mob18664_Kill')
RegisterUnitEvent(18664, 4, 'mob18664_Die')
